package ua.maxicash.dto;

import ua.maxicash.vo.SystemUser;

public class LightSystemUser {
	
	private String email;
	private Long id;
	private String firstName;
    private String lastName;

	public LightSystemUser() {
	}



	public String getEmail() {
		return email;
	}



	public void setEmail(String email) {
		this.email = email;
	}


    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public Long getId() {
		return id;
	}



	public void setId(Long id) {
		this.id = id;
	}



	public static LightSystemUser convert(SystemUser su){
		LightSystemUser lsu = new LightSystemUser();
		lsu.setEmail(su.getEmail());
		lsu.setId(su.getIdUser());
        lsu.setFirstName(su.getFirstName());
        lsu.setLastName(su.getLastName());
		return lsu;
		
	}
	
}
